//
// 项目基本样式文件
//

html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: $background-color-base;
  font-family: 'Microsoft YaHei', serif;
  font-size: 14px;
}

[tabindex] {
  outline: none;
}

.biconfont {
  vertical-align: middle;
}

// Colors

.color-primary {
  color: $--color-primary;
}

.color-primary-hover {
  &:hover {
    color: $--color-primary;
  }
}

.color-danger {
  color: $--color-danger;
}

.color-danger-hover:hover {
  color: $--color-danger;
}

.color-gray {
  color: #c7c7c7;
}

.color-white {
  color: #fff;
}

// margins and paddings
.mb-5 {
  margin-bottom: 5px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.ml-5 {
  margin-left: 5px;
}

.ml-10 {
  margin-left: 10px;
}

.ml-15 {
  margin-left: 15px;
}

.ml-20 {
  margin-left: 20px;
}

.mr-5 {
  margin-right: 5px;
}

.mr-10 {
  margin-right: 10px;
}

.mr-15 {
  margin-right: 15px;
}

.mr-20 {
  margin-right: 20px;
}

// Float
.clear {
  clear: both;
}

.left {
  float: left;
}

.right {
  float: right;
}

// Animations
@keyframes rotating {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.animate-rotating {
  animation: rotating 2s linear infinite;
}

i.icon-loading {
  display: inline-block;
  color: $--color-primary;
  animation: rotating 2s linear infinite;
}

@keyframes flipY360 {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

// 往左飘
@keyframes drift-left {
  0% {
    top: -70px;
    left: -160px;
  }
  25% {
    top: -95px;
    left: -160px;
  }
  50% {
    top: -95px;
    left: -185px;
  }
  75% {
    top: -85px;
    left: -175px;
  }
  100% {
    top: -70px;
    left: -160px;
  }
}

// 往右飘
@keyframes drift-right {
  0% {
    top: -70px;
    right: -160px;
  }
  25% {
    top: -95px;
    right: -160px;
  }
  50% {
    top: -95px;
    right: -185px;
  }
  75% {
    top: -85px;
    right: -175px;
  }
  100% {
    top: -70px;
    right: -160px;
  }
}

// Misc
.lock-scroll {
  height: 100vh;
  overflow: hidden;
}

.height-fill {
  height: 100%;
}

.curp {
  &:hover {
    cursor: pointer;
  }
}

.center {
  text-align: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.inline-flex-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.no-transition {
  -webkit-transition: none !important;
  -moz-transition: none !important;;
  -ms-transition: none !important;;
  -o-transition: none !important;;
  transition: none !important;;
}

/*
@media only screen and (min-width: $-sm) {
    .mb-scrollbar {
        !*滚动条整体样式*!
        &::-webkit-scrollbar {
            width: 8px; !*高宽分别对应横竖滚动条的尺寸*!
            height: 8px;
        }
        !*滚动条里面小方块*!
        &::-webkit-scrollbar-thumb {
            border-radius: 9px;
            //-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
            background: #555;
        }
        !*滚动条里面轨道*!
        &::-webkit-scrollbar-track {
            //-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
            -webkit-border-radius: 3px;
            -moz-border-radius: 3px;
            border-radius: 3px;
            background: #EDEDED;
        }
    }
}
*/